from survey import AnonymousSurvey

#定义一个问题，并且创建一个调查。
question  = "What language did you first learn to speak?"
my_survey = AnonymousSurvey(question)

#现实问题并且存储答案
my_survey.show_question()
print("Enter 'q' at any time to quit.\n")
while True:
    response = input("Language:")
    if response == 'q':
        break
    else:
        my_survey.store_responses(response)

#显示调查的结果
print("\n Thank you to everyone who particulated in the survey!")
my_survey.show_result()